 |
 |
 |
 |
#220767 - 07/07/02 08:42 AM
[6.x] Restrict Moderators 1.04
|
Addict
Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
|
NAME: Restrict Moderators <br />VERSION: 1.0.4 <br />DESCRIPTION: Globally enable/disable selected moderator privileges. <br />WORKING UNDER: UBB.threads 6.0.0 - 6.2 <br />PREREQUISITES: none <br />AUTHOR: Dave_L <br />CREDITS: Lisa_P (for explaining how the privileges are checked, and for beta testing) <br />DEMO: none <br />FILES ALTERED: admin/banuser.php, admin/dobanuser.php, admin/doeditboard.php, admin/dounbanuser.php, <br /> admin/editboard.php, admin/unbanuser.php, admin/showstats.php, admin/menu.php, config.inc.php <br />DATABASE ALTERED: no <br />NEW FILES: none <br /> <br />HISTORY: <br /> 2002-06-10 Dave_L - 1.0.0 Original release <br /> 2002-06-15 Dave_L - 1.0.1 Description updated (no code changes) <br /> 2002-07-07 Dave_L - 1.0.2 Description updated (no code changes) <br /> 2003-01-03 Dave_L - 1.0.3 Added $config['tbprefix'] for compatibility with 6.1 and 6.2. <br /> 2003-01-05 Dave_L - 1.0.4 Fixed typo.
Attachments
52055-restrict_moderators_1-0-4.zip (63 downloads)
_________________________
UBB.threads beta tester / threadsdev.com moderator Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#220771 - 07/09/02 04:16 PM
Re: Restrict Moderators 1.0
[Re: SurfMinister]
|
Addict
Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
|
Here's the extended description for the hack. If you think it's worthwhile, you could append the following to the original post above, and then delete this post.<br /><br />********<br />ABSTRACT<br />********<br /><br />The following configuration parameters are added:<br /><br /> mod_editforum - allow moderators to edit forums<br /> mod_ban - allow moderators to ban a user or IP<br /> mod_unban - allow moderators to unban a user or IP<br /> mod_viewallstats - allow moderators to view stats for all forums, including those not readable by the moderator<br /><br />To use these parameters, specify them in Admin/Edit config settings ("The following variables are unknown to the base UBB.threads package, but might be used by installed hacks or modifications to the program"). They can also be manually added by editing config.inc.php. A value of '1' enables the moderator privilege, a value of '0' disables the privilege. If a parameter is not specified, that's equivalent to specifying it as '0'.<br /><br />Here is an example of specifying the parameters. In this example, moderators are denied the privileges of editing forums and viewing all stats, and are given the privileges of banning and unbanning users:<br /><br /> $config['mod_editforum'] = '0';<br /> $config['mod_ban'] = '1';<br /> $config['mod_unban'] = '1';<br /> $config['mod_viewallstats'] = '0';
_________________________
UBB.threads beta tester / threadsdev.com moderator Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|